//
//  MKChaptersModel.m
//  ManKeCartoon
//
//  Created by 邹功梁 on 15/10/15.
//  Copyright © 2015年 ManKe. All rights reserved.
//

#import "MKChaptersModel.h"

#define    kField1Key    @"vip_state"
#define    kField2Key    @"chapter_id"
#define    kField3Key    @"seq_no"

@implementation MKChaptersModel
@synthesize vip_state;
@synthesize chapter_id;
@synthesize seq_no;

- (void)encodeWithCoder:(NSCoder *)encoder {
    [encoder encodeObject:vip_state forKey:kField1Key];
    [encoder encodeObject:chapter_id forKey:kField2Key];
    [encoder encodeObject:seq_no forKey:kField3Key];
}

- (id)initWithCoder:(NSCoder *)decoder {
    if (self = [super init]) {
        vip_state = [decoder decodeObjectForKey:kField1Key];
        chapter_id = [decoder decodeObjectForKey:kField2Key];
        seq_no = [decoder decodeObjectForKey:kField3Key];
    }
    return self;
}

- (id)copyWithZone:(NSZone *)zone {
    MKChaptersModel *copy = [[[self class] allocWithZone: zone] init];
    copy.vip_state = [self.vip_state copyWithZone:zone];
    copy.chapter_id = [self.chapter_id copyWithZone:zone];
    copy.seq_no = [self.seq_no copyWithZone:zone];
    
    return copy;
}

@end
